#ifndef STATUSBAR_H
#define STATUSBAR_H

#include <QWidget>

namespace Ui {
    class StatusBar;
}

class StatusBar : public QWidget
{
    Q_OBJECT

public:
    explicit StatusBar(QWidget *parent = 0);
    virtual ~StatusBar();
public:
    void setCursorPosition(int line, int index);
    void setFileName(const QString & fileName);
    void setModified(bool m);
signals:
    void closeRequest();
private slots:
    void onCloseClicked();
private:
    Ui::StatusBar *ui;
};

#endif // STATUSBAR_H
